package ph.com.gs3.formalistics.presenter;

import ph.com.gs3.formalistics.custom.implementation.SmartmaticDocumentActivity;
import ph.com.gs3.formalistics.custom.interfaces.CustomDocumentActivity;
import ph.com.gs3.formalistics.model.vo.business.User;

public class CustomImplementation {

	private static CustomImplementation instance;

	public static final String SERVER_SMARTMATIC = "http://192.168.0.57";

	public static CustomImplementation getInstance() {
		if (instance == null) {
			instance = new CustomImplementation();
		}

		return instance;
	}

	public CustomDocumentActivity getCustomDocumentActivity(DocumentActivity sourceActivity,
	        User currentUser) {
		// Return custom implementation code here

		// Company currentCompany = currentUser.getCompany();
		// if (SERVER_SMARTMATIC.equals(currentCompany.getServer())) {
		return new SmartmaticDocumentActivity(sourceActivity);
		// }

		// return null;
	}

}
